package org.zfes.snowier.cloud.zbss.cms.site.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsSite extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsSite() {}
	public CmsSite(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="不能为空")
	  private java.lang.Integer siteId;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="站点名称长度不能大于50")
	  private java.lang.String siteName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="简称长度不能大于50")
	  private java.lang.String shortName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="域名长度不能大于100")
	  private java.lang.String domain;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="域名别名长度不能大于255")
	  private java.lang.String domainAlias;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="域名重定向长度不能大于255")
	  private java.lang.String domainRedirect;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="站点路径长度不能大于100")
	  private java.lang.String sitePath;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="首页模板长度不能大于255")
	  private java.lang.String tplIndex;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="站点关键字长度不能大于255")
	  private java.lang.String keywords;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="站点描述长度不能大于255")
	  private java.lang.String description;
 
	@javax.validation.constraints.NotNull(message="协议不能为空")
	@javax.validation.constraints.NotBlank(message="协议不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=20,message="协议长度不能大于20")
	  private java.lang.String protocol;
 
	@javax.validation.constraints.NotNull(message="动态页后缀不能为空")
	@javax.validation.constraints.NotBlank(message="动态页后缀不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=10,message="动态页后缀长度不能大于10")
	  private java.lang.String dynamicSuffix;
 
	@javax.validation.constraints.NotNull(message="静态页后缀不能为空")
	@javax.validation.constraints.NotBlank(message="静态页后缀不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=10,message="静态页后缀长度不能大于10")
	  private java.lang.String staticSuffix;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="静态页路径长度不能大于100")
	  private java.lang.String staticDir;
 
	@javax.validation.constraints.NotNull(message="审核后(1:不能修改删除;2:修改后退回;3:修改后不变)不能为空")
	  private java.lang.Byte afterCheck;
 
	@javax.validation.constraints.NotNull(message="是否开启回收站不能为空")
	  private java.lang.Byte isRecycleOn;
 
	
	//<-------------------------------------------->
	public CmsSite setSiteId(java.lang.Integer siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Integer getSiteId(){
		return this.siteId;
	}
	public CmsSite setSiteName(java.lang.String siteName){
		this.siteName=siteName==null?null:siteName.trim();
	 return this;
	}
	public java.lang.String getSiteName(){
		return this.siteName;
	}
	public CmsSite setShortName(java.lang.String shortName){
		this.shortName=shortName==null?null:shortName.trim();
	 return this;
	}
	public java.lang.String getShortName(){
		return this.shortName;
	}
	public CmsSite setDomain(java.lang.String domain){
		this.domain=domain==null?null:domain.trim();
	 return this;
	}
	public java.lang.String getDomain(){
		return this.domain;
	}
	public CmsSite setDomainAlias(java.lang.String domainAlias){
		this.domainAlias=domainAlias==null?null:domainAlias.trim();
	 return this;
	}
	public java.lang.String getDomainAlias(){
		return this.domainAlias;
	}
	public CmsSite setDomainRedirect(java.lang.String domainRedirect){
		this.domainRedirect=domainRedirect==null?null:domainRedirect.trim();
	 return this;
	}
	public java.lang.String getDomainRedirect(){
		return this.domainRedirect;
	}
	public CmsSite setSitePath(java.lang.String sitePath){
		this.sitePath=sitePath==null?null:sitePath.trim();
	 return this;
	}
	public java.lang.String getSitePath(){
		return this.sitePath;
	}
	public CmsSite setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsSite setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsSite setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsSite setTplIndex(java.lang.String tplIndex){
		this.tplIndex=tplIndex==null?null:tplIndex.trim();
	 return this;
	}
	public java.lang.String getTplIndex(){
		return this.tplIndex;
	}
	public CmsSite setKeywords(java.lang.String keywords){
		this.keywords=keywords==null?null:keywords.trim();
	 return this;
	}
	public java.lang.String getKeywords(){
		return this.keywords;
	}
	public CmsSite setDescription(java.lang.String description){
		this.description=description==null?null:description.trim();
	 return this;
	}
	public java.lang.String getDescription(){
		return this.description;
	}
	public CmsSite setProtocol(java.lang.String protocol){
		this.protocol=protocol==null?null:protocol.trim();
	 return this;
	}
	public java.lang.String getProtocol(){
		return this.protocol;
	}
	public CmsSite setDynamicSuffix(java.lang.String dynamicSuffix){
		this.dynamicSuffix=dynamicSuffix==null?null:dynamicSuffix.trim();
	 return this;
	}
	public java.lang.String getDynamicSuffix(){
		return this.dynamicSuffix;
	}
	public CmsSite setStaticSuffix(java.lang.String staticSuffix){
		this.staticSuffix=staticSuffix==null?null:staticSuffix.trim();
	 return this;
	}
	public java.lang.String getStaticSuffix(){
		return this.staticSuffix;
	}
	public CmsSite setStaticDir(java.lang.String staticDir){
		this.staticDir=staticDir==null?null:staticDir.trim();
	 return this;
	}
	public java.lang.String getStaticDir(){
		return this.staticDir;
	}
	public CmsSite setAfterCheck(java.lang.Byte afterCheck){
	 this.afterCheck=afterCheck;
	 return this;
	}
	public java.lang.Byte getAfterCheck(){
		return this.afterCheck;
	}
	public CmsSite setIsRecycleOn(java.lang.Byte isRecycleOn){
	 this.isRecycleOn=isRecycleOn;
	 return this;
	}
	public java.lang.Byte getIsRecycleOn(){
		return this.isRecycleOn;
	}

}
